﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NJL.WebUsers.FriendCenter.cs"
    EnableViewState="false" Inherits="NJL.WebUsers.FriendCenter" %>

<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="Controls/WUCHeader.ascx" TagName="WUCHeader" TagPrefix="uc1" %>
<%@ Register Src="Controls/WUCFooter.ascx" TagName="WUCFooter" TagPrefix="uc2" %>
<%@ Register Src="Controls/WUCELPS.ascx" TagName="WUCELPS" TagPrefix="uc3" %>
<%@ Register src="Controls/WUCLoginBox.ascx" tagname="WUCLoginBox" tagprefix="uc4" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>乡村广场-农家乐网</title>
    <link rel="stylesheet" type="text/css" href="/Styles/base1.css" />
    <script type="text/javascript" language="javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" language="javascript" src="/Scripts/jquery.KinSlideshow-1.1.js"></script>
</head>
<body>
<%
    if (UserId == "" || UserName == "")
    {         
%>
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        //示例9，综合效果
        var t9 = new PopupLayer({ trigger: "#secondlogin", popupBlk: "#blk9", closeBtn: "#close9", useOverlay: true, useFx: true,
            offsets: {
                x: 0,
                y: -41
            }
        });
        t9.doEffects = function (way) {
            if (way == "open") {
                this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                    this.popupLayer.animate({
                        left: ($(document).width() - this.popupLayer.width()) / 2,
                        top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                        opacity: 0.8
                    }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                } .binding(this));
                document.getElementById('Login').src = '<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>';
            }
            else {
                this.popupLayer.animate({
                    left: this.trigger.offset().left,
                    top: this.trigger.offset().top,
                    opacity: 0.1
                }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
            }
        }
    });
</script>
<div id="blk9" class="blk">
    <div class="popup_title">
        <span class="f_right"><a href="javascript:void(0)" id="close9">关闭</a></span>
        <ul>
            <li class="now"><a  href="<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>"
                target="main">登录</a> </li>
        </ul>
    </div>
    <div>
        <iframe id="Login" name="main" width="500" height="420" style="overflow: hidden;
            border: none;"></iframe>
    </div>
</div>
<%
    }
%>
    <form id="form1" runat="server">
    <uc1:WUCHeader ID="WUCHeader1" runat="server" />
    <!--主要内容-->
    <div class="clearfix w1003" id="content">
        
        <div class="place02 m_top_5">
            <p>
                您现在的位置是：<a href="/">首页</a>>><span>乡村广场</span>
            </p>
        </div>
        <!--顶部推广-->
        <div class="blank cleanFlex">
        </div>
        <div class="f_right width_260">
            <!--客户信息-->
            <uc4:WUCLoginBox ID="WUCLoginBox1" runat="server" />
            <div class="blank cleanFlex">
            </div>
            <uc3:WUCELPS ID="WUCELPS1" runat="server" />
            <div class="cleanFlex">
            </div>
        </div>
        <!--左侧内容-->
        <div class="w_730 f_left">
            <!--今日达人-->
            <%--<div>
                <div class="titleArr">
                    <span class="f_right"><a href="#" style="display: none">更多</a></span>
                    <h2>
                        分享达人</h2>
                </div>
                <div class="searchbg cont">
                    <dl class="imglist" style="border: none; height: 102px;">
                        <dt><a target="_blank" href="/wanjia/<%=LIST_USER_1[0].ID %>-index.html">
                            <img src="<% if(GetPersonByUserID(LIST_USER_1[0].ID).IMAGE_CODE!="") Response.Write(GetImageUrl(GetPersonByUserID(LIST_USER_1[0].ID).IMAGE_CODE,"U1")); else Response.Write("/Images/avatar.jpg"); %>"
                                width="120px" height="90px" class="picBor" alt="" /></a></dt>
                        <dd>
                            <strong><a target="_blank" href="/wanjia/<%=LIST_USER_1[0].ID %>-index.html">
                                <%=LIST_USER_1[0].USER_NAME%></a></strong></dd>
                        <dd>
                            <%=GetPersonByUserID(LIST_USER_1[0].ID).SELF_EVALUATION%></dd>
                        <dd style="display: none" class="greenbglink">
                            <a href="#">+&nbsp;加好友</a>&nbsp;&nbsp;<a href="#">+&nbsp;发信息</a></dd>
                    </dl>
                </div>
            </div>--%>
            <!--搜索-->
           <%-- <div class="ksearch w_730 f_left m_top_10">
                <p>
                    搜一下：
                    <asp:TextBox ID="txtKeywords" runat="server" MaxLength="20" class="input" Style="width: 400px;"></asp:TextBox>
                    <asp:Button ID="bntTopcis" runat="server" class="searchBtn" Text="搜话题" onmouseover="this.className='searchBtnover'"
                        onmouseout="this.className='searchBtn'" OnClick="bntTopcis_Click" />
                    <asp:Button ID="btnUser" runat="server" Text="搜人" class="searchBtn" onmouseover="this.className='searchBtnover'"
                        onmouseout="this.className='searchBtn'" OnClick="btnUser_Click" />
                </p>
                <!--热门-->
                <div class="kSearchHot" style="display: none">
                    <p>
                        <strong>热门：</strong> <a href="#">采摘</a>|<a href="#">人物专访</a>|<a href="#">漂流</a>|<a
                            href="#">武汉小吃</a>| <a href="#">自驾游</a>|<a href="#">家乡菜</a>|<a href="#">采摘</a>|<a
                                href="#">采摘采摘采摘</a>|<a href="#">红烧鱼</a>|
                    </p>
                </div>
            </div>--%>
            <!--最新加入-->
            <div class="m_top_5 box cleanFlex">
                 <div class="titlegrybg">
                    <h2>
                        最新加入</h2>
                </div>
                <div class="cont">
                    <!--跑马灯
                    <marquee behavior="alternate" height="64px" scrollamount="2" onmouseover="this.stop()"
                        onmouseout="this.start()">-->
                    <div>
                       <ul class="imglist imgList04">
                        <%
                            for (int i = 0; i < LIST_USER_1.Count; i++)
                            {
                                %>
                            <li style="width:75px;height:80px; display:inline-block;">
                                <a target="_blank" title="<%=LIST_USER_1[i].USER_NAME %>" href="/wanjia/<%=LIST_USER_1[i].ID %>-index.html">
                                    <img src="<% if(GetPersonByUserID(LIST_USER_1[i].ID).IMAGE_CODE!="") Response.Write(GetImageUrl(GetPersonByUserID(LIST_USER_1[i].ID).IMAGE_CODE,"U2")); else Response.Write("/Images/avatar.jpg"); %>" alt="<%=LIST_USER_1[i].USER_NAME %>" width="67px" height="50px" class="picBor" />
                                </a>
                                <p><a target="_blank" title="<%=LIST_USER_1[i].USER_NAME %>" href="/wanjia/<%=LIST_USER_1[i].ID %>-index.html"><%if (LIST_USER_1[i].USER_NAME.Length > 6) Response.Write(LIST_USER_1[i].USER_NAME.Substring(0, 6) + "..."); else Response.Write(LIST_USER_1[i].USER_NAME); %></a></p>
                            </li>
                                <% 
                                    }
                        %>
                       </ul>
                    </div>
                    <div class="cleanFlex" style="height: 1px; overflow: hidden;">
                    </div>
                </div>
            </div>
            <!--最新加入-->
            <div class="cleanFlex" style="height: 1px; overflow: hidden;">
            </div>
            <div class="m_top_5 box">
                <div class="titlegrybg">
                    <span class="f_right"><a href="/njxy/">查看更多</a></span>
                    <h2>
                        农家乐</h2>
                </div>
                <div class="m_top_10">
                <marquee behavior="alternate" height="140px" scrollamount="2" onmouseover="this.stop()"
                    onmouseout="this.start()">
                    <ul class="imglist imgList03">
                        <%
                            for (int i = 0; i < LIST_COMPANY_1.Count; i++)
                            {
                        %>
                        <li style="width: 128px; height: 120px; overflow: hidden;"><a title="<%=LIST_COMPANY_1[i].COMPANY_NAME %>"
                            target="_blank" href="/shangpu/<%=LIST_COMPANY_1[i].ID %>-index.html">
                            <img src="<%=GetImageUrl(LIST_COMPANY_1[i].IMAGE_CODE,"U1") %>" alt="<%=LIST_COMPANY_1[i].COMPANY_NAME %>"
                                width="120px" height="90px" class="picBor" /></a>
                            <p>
                                <a title="<%=LIST_COMPANY_1[i].COMPANY_NAME %>" target="_blank" href="/shangpu/<%=LIST_COMPANY_1[i].ID %>-index.html">
                                    <%if (LIST_COMPANY_1[i].COMPANY_NAME.Length > 6) Response.Write(LIST_COMPANY_1[i].COMPANY_NAME.Substring(0, 6) + "..."); else Response.Write(LIST_COMPANY_1[i].COMPANY_NAME); %></a></p>
                            <p class="greenbglink" style="display: none">
                                <a href="#">+&nbsp;加为好友</a></p>
                        </li>
                        <% 
                            }
                        %>
                    </ul>
                </marquee>
                </div>
                <div class="cleanFlex" style="height: 1px; overflow: hidden;">
                </div>
            </div>
            <!--最新评论-->
            <div class="cleanFlex" style="height: 1px; overflow: hidden;">
            </div>
            <div class="m_top_10">
                <div class="titleTab02">
                    <ul style="padding-left: 3px;">
                        <li class="now"><a href="#">热门分享</a></li>
                        <li style="display: none"><a href="#">热门游客</a></li>
                    </ul>
                </div>
                <div class="cont">
                    <%
                        for (int i = 0; i < LIST_NEWS_1.Count; i++)
                        {
                    %>
                    <dl class="imglist cleanFlex" style="height:65px;">
                        <dt><a target="_blank" href="/wanjia/<%=LIST_NEWS_1[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS_1[i].ID %>.html">
                            <img src="<%if(LIST_NEWS_1[i].IMAGE_CODE!=""){Response.Write(GetImageUrl(LIST_NEWS_1[i].IMAGE_CODE,"U2"));}else{Response.Write("/Images/nopic.jpg");} %>"
                                alt="" width="67px" height="50px" class="picBor" /></a></dt>
                        <dd class="font14">
                            <strong><a target="_blank" href="/wanjia/<%=LIST_NEWS_1[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS_1[i].ID %>.html">
                                <%=GetUserByID(LIST_NEWS_1[i].NJL_PERSON_ID).USER_NAME%></a> </strong>&nbsp;&nbsp;
                            <span class="greenlink"><a target="_blank" href="/wanjia/<%=LIST_NEWS_1[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS_1[i].ID %>.html">
                                <%=LIST_NEWS_1[i].NEWS_TITLE %></a> </span>
                        </dd>
                        <dd>
                            <%=LIST_NEWS_1[i].NEWS_SUBJECT_TITLE %></dd>
                        <dd class="f_right greenbglink">
                            <a target="_blank" href="/wanjia/<%=LIST_NEWS_1[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS_1[i].ID %>.html">
                                +&nbsp;阅读全文</a>&nbsp;&nbsp; <a href="#" style="display: none">+&nbsp;我要分享</a>
                        </dd>
                    </dl>
                    <% 
                        } 
                    %>
                </div>
            </div>
            <!--分页-->
            <div id="pager" runat="server" class="pageBord cleanFlex m_top_10" style="display: none">
                <span>第1/20页</span> <span class="now">1</span> <a href="#">2</a><a href="#">2</a><a
                    href="#">3</a><a href="#">4</a><a href="#">5</a>...<a href="#">20</a> <a href="#">下一页</a><a
                        href="#">末页</a>
            </div>
        </div>
        <div class="blank cleanFlex">
        </div>
    </div>
    <uc2:WUCFooter ID="WUCFooter1" runat="server" />
<%--    <script type="text/javascript">
        var ftxtkeywords = function () {
            var keywords = document.getElementById("<%=txtKeywords.ClientID %>").value;
            keywords = $.trim(keywords);
            if (keywords == "") {
                document.getElementById("<%=txtKeywords.ClientID %>").focus();
                return false;
            }
        }
    </script>
--%>    </form>
</body>
</html>
